package com.zhoug.zmuidemo.ui;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

import com.zhoug.zmuidemo.R;

public class StickyActivity extends AppCompatActivity {

    private TextView mSticky1;
    private TextView mSticky2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_sticky);
        findViews();
        mSticky1.setOnClickListener(v->{
            Toast.makeText(this, "mSticky1", Toast.LENGTH_SHORT).show();
        });
        mSticky2.setOnClickListener(v->{
            Toast.makeText(this, "mSticky2", Toast.LENGTH_SHORT).show();
        });
    }

    private void findViews() {
        mSticky1 = findViewById(R.id.sticky1);
        mSticky2 = findViewById(R.id.sticky2);
    }
}